﻿using System;
using System.Collections.Generic;

namespace ZH.Infrastructure.EFCore.MySql;

public partial class Schedule
{
    public int Id { get; set; }

    /// <summary>
    /// 员工编号
    /// </summary>
    public string EmpId { get; set; } = null!;

    /// <summary>
    /// 星期几（1-7，1表示周一，7表示周日）
    /// </summary>
    public int DayOfWeek { get; set; }

    /// <summary>
    /// 班次类型（早班、中班、晚班、备班、休息等）
    /// </summary>
    public string ShiftType { get; set; } = null!;

    /// <summary>
    /// 开始时间（休息或事假时可为NULL）
    /// </summary>
    public TimeOnly? StartTime { get; set; }

    /// <summary>
    /// 结束时间（休息或事假时可为NULL）
    /// </summary>
    public TimeOnly? EndTime { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Notes { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreatedAt { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdatedAt { get; set; }
}
